package com.qinggeng.project.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import com.qinggeng.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 助力记录对象 assist_record
 *
 * @author ruoyi
 * @date 2020-11-05
 */
public class AssistRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 助力id */
    private Long id;

    /** 用户Id */
    @Excel(name = "用户Id")
    private Long userId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;

    /** 主类id */
    @Excel(name = "主类id")
    private Long mainCategory;

    /** 助力次数 */
    @Excel(name = "助力次数")
    private Integer assistCount;

    /** 已助力次数 */
    @Excel(name = "已助力次数")
    private Integer alreadyAssistCount;

    /** 助力成功 1=成功 0=失败 */
    @Excel(name = "助力成功 1=成功 0=失败 2=进行中 3=结束")
    private String assistSuccess;

    /** 助力成功 1=成功 0=失败 */
    @Excel(name = " 1=删除 0=未删除")
    private String delFlag;

    /** 是否中奖 */
    @Excel(name = "是否中奖")
    private Boolean isWin;

    /** 助力抽奖奖品ID */
    @Excel(name = "助力抽奖奖品ID")
    private Long giftId;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date outTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setAssistCount(Integer assistCount)
    {
        this.assistCount = assistCount;
    }

    public Integer getAssistCount()
    {
        return assistCount;
    }
    public void setAssistSuccess(String assistSuccess)
    {
        this.assistSuccess = assistSuccess;
    }

    public String getAssistSuccess()
    {
        return assistSuccess;
    }
    public void setOutTime(Date outTime)
    {
        this.outTime = outTime;
    }

    public Date getOutTime()
    {
        return outTime;
    }
    public Long getMainCategory() {
        return mainCategory;
    }

    public Boolean getIsWin() {
        return isWin;
    }

    public void setIsWin(Boolean isWin) {
        this.isWin = isWin;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }
    public Long getGiftId() {
        return giftId;
    }

    public void setGiftId(Long giftId) {
        this.giftId = giftId;
    }

    public void setMainCategory(Long mainCategory) {
        this.mainCategory = mainCategory;
    }

    public Integer getAlreadyAssistCount() {
        return alreadyAssistCount;
    }

    public void setAlreadyAssistCount(Integer alreadyAssistCount) {
        this.alreadyAssistCount = alreadyAssistCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("goodsId", getGoodsId())
            .append("assistCount", getAssistCount())
            .append("assistSuccess", getAssistSuccess())
            .append("createTime", getCreateTime())
            .append("outTime", getOutTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
